<?php

return [
    'backstage' => [
        //店铺管理
        [
            'name' => "店铺管理",
            'ability' => 'shop',
            'child' => [
                [
                    'name' => '添加',
                    'ability' => 'shop_store_add',
                ],
                [
                    'name' => '编辑',
                    'ability' => 'shop_store_edit',
                ],
                [
                    'name' => '【开/关】门',
                    'ability' => 'shop_store_on_off',
                ],
                [
                    'name' => '会员',
                    'ability' => 'shop_store_member',
                ],
                [
                    'name' => '会员添加',
                    'ability' => 'shop_store_member_add',
                ],
                [
                    'name' => '会员导出',
                    'ability' => 'shop_store_member_export',
                ],
                [
                    'name' => '推荐商品',
                    'ability' => 'shop_store_recommend',
                    
                ],
                [
                    'name' => '推荐商品添加',
                    'ability' => 'shop_store_recommend_add',
                ],
                [
                    'name' => '推荐商品删除',
                    'ability' => 'shop_store_recommend_del',
                ],
                [
                    'name' => 'input2br',// 前端换行用  跟权限没关系
                    'ability' => 'input2br',
                ],
                [
                    'name' => '展示图',
                    'ability' => 'shop_store_cover',
                ],
                [
                    'name' => '展示图添加',
                    'ability' => 'shop_store_cover_add',
                ],
                [
                    'name' => '展示图删除',
                    'ability' => 'shop_store_cover_del',
                ],
                [
                    'name' => 'input2br',// 前端换行用  跟权限没关系
                    'ability' => 'input2br',
                ],
                [
                    'name' => '门店集团',
                    'ability' => 'group',
                ],
                [
                    'name' => '门店集团添加',
                    'ability' => 'group-add',
                ],
                [
                    'name' => '门店集团修改',
                    'ability' => 'group-edit',
                ],
                [
                    'name' => '门店集团删除',
                    'ability' => 'group-del',
                ],
            ]
        ],
        //产品库
        [
            'name' => '产品库',
            'ability' => 'lib',
            'child' => [
                [
                    'name' => '编辑类别',
                    'ability' => 'lib-attr-edit',
                ],
                [
                    'name' => '编辑产品',
                    'ability' => 'lib-edit',
                ]
            ],
        ],
        //套系管理
        [
            'name' => "套系管理",
            'ability' => 'package',
            'child' => [
                [
                    'name' => '添加',
                    'ability' => 'package-add',
                ],
                [
                    'name' => '编辑',
                    'ability' => 'package-edit',
                ],
                [
                    'name' => '评论',
                    'ability' => 'package-comment',
                ],
                [
                    'name' => '套系上架',
                    'ability' => 'package_up',
                ],
                [
                    'name' => '套系下架',
                    'ability' => 'package_down',
                ],
                [
                    'name' => '返利规则',
                    'ability' => 'package-rule',
                ],
                [
                    'name' => 'input2br',// 前端换行用  跟权限没关系
                    'ability' => 'input2br',
                ],
                [
                    'name' => '爆款套系',
                    'ability' => 'package-explosive',
                ],
                [
                    'name' => '爆款套系添加',
                    'ability' => 'package-explosive-add'
                ],
                [
                    'name' => '爆款套系移除',
                    'ability' => 'package-explosive-remove'
                ],
                [
                    'name' => 'input2br',// 前端换行用  跟权限没关系
                    'ability' => 'input2br',
                ],
                [
                    'name' => '服务标签',
                    'ability' => 'pkg_tag',
                ],
                [
                    'name' => '服务标签添加',
                    'ability' => 'pkg_tag-add',
                ],
                [
                    'name' => '服务标签修改',
                    'ability' => 'pkg_tag-edit',
                ],
                [
                    'name' => '服务标签删除',
                    'ability' => 'pkg_tag-del',
                ],
                [
                    'name' => 'input2br',// 前端换行用  跟权限没关系
                    'ability' => 'input2br',
                ],
                [
                    'name' => "充值记录",
                    'ability' => 'pkg_recharge',
                ],
                [
                    'name' => "用户充值",
                    'ability' => 'pkg_recharge_add',
                ],
            ],
        ],
        //商品管理
        [
            'name' => "商品管理",
            'ability' => 'good',
            'child' => [
                [
                    'name' => '顶级分类管理',
                    'ability' => 'good-top_category',
                ],
                [
                    'name' => '顶级分类添加',
                    'ability' => 'top_category-add',
                ],
                [
                    'name' => '顶级分类编辑',
                    'ability' => 'top_category-edit',
                ],
                [
                    'name' => '顶级分类删除',
                    'ability' => 'top_category-delete',
                ],
                [
                    'name' => 'input2br',// 前端换行用  跟权限没关系
                    'ability' => 'input2br',
                ],
                [
                    'name' => '商品品牌',
                    'ability' => 'good-brand',
                ],
                [
                    'name' => '商品品牌添加',
                    'ability' => 'brand-add',
                ],
                [
                    'name' => '商品品牌编辑',
                    'ability' => 'brand-edit',
                ],
                [
                    'name' => '商品品牌删除',
                    'ability' => 'brand-delete',
                ],
                [
                    'name' => 'input2br',// 前端换行用  跟权限没关系
                    'ability' => 'input2br',
                ],
                [
                    'name' => '类目管理',
                    'ability' => 'good-category',
                ],
                [
                    'name' => '类目添加',
                    'ability' => 'category-add',
                ],
                [
                    'name' => '类目编辑',
                    'ability' => 'category-edit',
                ],
                [
                    'name' => '类目删除',
                    'ability' => 'category-delete',
                ],
                [
                    'name' => 'input2br',// 前端换行用  跟权限没关系
                    'ability' => 'input2br',
                ],
                [
                    'name' => '商品添加',
                    'ability' => 'good-add',
                ],
                [
                    'name' => '商品编辑',
                    'ability' => 'good-edit',
                ],
                [
                    'name' => '商品评论',
                    'ability' => 'good-comment',
                ],
                [
                    'name' => '商品上架',
                    'ability' => 'good_up',
                ],
                [
                    'name' => '商品下架',
                    'ability' => 'good_down',
                ],
                [
                    'name' => 'input2br',// 前端换行用  跟权限没关系
                    'ability' => 'input2br',
                ],
                [
                    'name' => '服务标签',
                    'ability' => 'tag',
                ],
                [
                    'name' => '服务标签添加',
                    'ability' => 'tag-add',
                ],
                [
                    'name' => '服务标签修改',
                    'ability' => 'tag-edit',
                ],
                [
                    'name' => '服务标签删除',
                    'ability' => 'tag-del',
                ],
                [
                    'name' => 'input2br',// 前端换行用  跟权限没关系
                    'ability' => 'input2br',
                ],
                [
                    'name' => "充值记录",
                    'ability' => 'recharge',
                ],
                [
                    'name' => "用户充值",
                    'ability' => 'recharge_add',
                ],
//                [
//                    'name' => '返利规则',
//                    'ability' => 'good-rule',
//                ],
            ],
        ],
        //营销活动
        [
            'name' => '满减优惠',
            'ability' => 'full_reduction',
            'child' => [
                [
                    'name' => "添加满减优惠",
                    'ability' => 'full_reduction-add',
                ],
                [
                    'name' => "编辑满减优惠",
                    'ability' => 'full_reduction-edit',
                ], 
                [
                    'name' => '删除满减优惠',
                    'ability' => 'full_reduction-delete',
                ]
            ]
        ],
        [
            'name' => '商品折扣',
            'ability' => 'discount',
            'child' => [
                [
                    'name' => "添加商品折扣",
                    'ability' => 'discount-add',
                ],
                [
                    'name' => "编辑商品折扣",
                    'ability' => 'discount-edit',
                ], 
                [
                    'name' => '删除商品折扣',
                    'ability' => 'discount-delete',
                ]
            ]
        ],
        [
            'name' => '套系赠品',
            'ability' => 'gift',
            'child' => [
                [
                    'name' => "添加套系赠品",
                    'ability' => 'gift-add',
                ],
                [
                    'name' => "编辑套系赠品",
                    'ability' => 'gift-edit',
                ], 
                [
                    'name' => '删除套系赠品',
                    'ability' => 'gift-delete',
                ]
            ]
        ],
        [
            'name' => '商品赠品',
            'ability' => 'goods_gift',
            'child' => [
                [
                    'name' => "添加商品赠品",
                    'ability' => 'goods_gift-add',
                ],
                [
                    'name' => "编辑商品赠品",
                    'ability' => 'goods_gift-edit',
                ], 
                [
                    'name' => '删除商品赠品',
                    'ability' => 'goods_gift-delete',
                ]
            ]
        ],
        //订单管理
        [
            'name' => "订单管理",
            'ability' => 'order',
            'child' => [
                [
                    'name' => '商品订单',
                    'ability' => 'goods-order',
                ],
                [
                    'name' => '导出',
                    'ability' => 'goods-order-export'
                ],
                [
                    'name' => '退款',
                    'ability' => 'goods-order-refund'
                ],
                [
                    'name' => '标记完成',
                    'ability' => 'goods-order-finish'
                ],
                [
                    'name' => '收尾款',
                    'ability' => 'goods-order-final'
                ],
                [
                    'name' => '编辑/删除',
                    'ability' => 'goods-change',//编辑后为：goods-order-change
                ],
                [
                    'name' => 'input2br',// 前端换行用  跟权限没关系
                    'ability' => 'input2br',
                ],
                [
                    'name' => '套系订单',
                    'ability' => 'package-order',
                ],
                [
                    'name' => '导出',
                    'ability' => 'package-order-export'
                ],
                [
                    'name' => '退款',
                    'ability' => 'package-order-refund'
                ],
                [
                    'name' => '标记完成',
                    'ability' => 'package-order-finish'
                ],
                [
                    'name' => '收尾款',
                    'ability' => 'package-order-final'
                ],
                [
                    'name' => '编辑/删除',
                    'ability' => 'package-change',//编辑后为：package-order-change
                ],
                [
                    'name' => '创建订单',
                    'ability' => 'order-create'
                ]
            ],
        ],
        //评论管理
        [
            'name' => '评论管理',
            'ability' => 'comment',
            'child' => [
                [
                    'name' => "隐藏显示",
                    'ability' => 'comment-edit',
                ], [
                    'name' => '删除',
                    'ability' => 'comment-delete',
                ], [
                    'name' => '系统回复',
                    'ability' => 'comment-system',
                ], [
                    'name' => '已读',
                    'ability' => 'comment-read',
                ]
            ]
        ],
        //充值管理
        [
            'name' => "充值管理",
            'ability' => 'recharge_record',
            'child' => [
                [
                    'name' => "充值",
                    'ability' => 'recharge_record_recharge',
                ]
            ],
        ],
        //用户管理
        [
            'name' => "用户管理",
            'ability' => 'user',
            'child' => [
                [
                    'name' => "全部用户",
                    'ability' => 'user-all',
                ],
                [
                    'name' => "编辑信息",
                    'ability' => 'user-all-edit',
                ],
                // [
                //     'name' => "全部用户导出",
                //     'ability' => 'user-all-export',
                // ],
                [
                    'name' => "充值",
                    'ability' => 'recharge_record_recharge',
                ],
                [
                    'name' => "跳转",
                    'ability' => 'user-all-jump',
                ],
                [
                    'name' => 'input2br',// 前端换行用  跟权限没关系
                    'ability' => 'input2br',
                ],
                [
                    'name' => "注册用户",
                    'ability' => 'user-level0',
                ],
                [
                    'name' => "编辑信息",
                    'ability' => 'user-level0-edit',
                ],
                [
                    'name' => "修改身份",
                    'ability' => 'user-level0-level',
                ],
                [
                    'name' => "注册用户导出",
                    'ability' => 'user-level0-export',
                ],
                [
                    'name' => "充值",
                    'ability' => 'recharge_record_recharge',
                ],
                [
                    'name' => 'input2br',// 前端换行用  跟权限没关系
                    'ability' => 'input2br',
                ],
                [
                    'name' => "返利会员",
                    'ability' => 'user-level1',
                ],
                [
                    'name' => "编辑信息",
                    'ability' => 'user-level1-edit',
                ],
                [
                    'name' => "修改身份",
                    'ability' => 'user-level1-level',
                ],
                [
                    'name' => "编辑会员信息",
                    'ability' => 'user-member',
                ],
                [
                    'name' => "返利会员导出",
                    'ability' => 'user-level1-export',
                ],
                [
                    'name' => "充值",
                    'ability' => 'recharge_record_recharge',
                ],
                [
                    'name' => 'input2br',// 前端换行用  跟权限没关系
                    'ability' => 'input2br',
                ],
                [
                    'name' => "城市合伙人",
                    'ability' => 'user-level2',
                 ],
                [
                    'name' => "编辑信息",
                    'ability' => 'user-level2-edit',
                ],
                [
                    'name' => "修改身份",
                    'ability' => 'user-level2-level',
                ],
                [
                    'name' => "修改邀请人",
                    'ability' => 'user-edit-referrer',
                ],
                [
                    'name' => "城市合伙人导出",
                    'ability' => 'user-level2-export',
                ],
                [
                    'name' => "充值",
                    'ability' => 'recharge_record_recharge',
                ],
                [
                    'name' => 'input2br',// 前端换行用  跟权限没关系
                    'ability' => 'input2br',
                ],
                [
                    'name' => "商家职员",
                    'ability' => 'user-level3',
                ],
                [
                    'name' => "编辑信息",
                    'ability' => 'user-level3-edit',
                ],
                [
                    'name' => "修改身份",
                    'ability' => 'user-level3-level',
                ],
                [
                    'name' => "充值",
                    'ability' => 'recharge_record_recharge',
                ],
                [
                    'name' => 'input2br',// 前端换行用  跟权限没关系
                    'ability' => 'input2br',
                ],
                [
                    'name' => "合伙人申请",
                    'ability' => 'user-apply',
                ],
                [
                    'name' => "合伙人申请编辑",
                    'ability' => 'user-apply-edit',
                ]
            ],
        ],
        //返利管理
        [
            'name' => "返利管理",
            'ability' => 'rebate',
            'child' => [
                [
                    'name' => "审核",
                    'ability' => 'rebate-edit'
                ],
                [
                    'name' => "导出",
                    'ability' => 'rebate-export'
                ],
                [
                    'name' => "撤回",
                    'ability' => 'rebate-revoke'
                ]
            ],
        ],
        //提现管理
        [
            'name' => "提现管理",
            'ability' => 'withdrawal',
            'child' => [
                [
                    'name' => "导出",
                    'ability' => 'withdrawal-export'
                ],
                [
                    'name' => "操作",
                    'ability' => 'withdrawal-edit'
                ]
            ],
        ],
        //投诉管理
        [
            'name' => '投诉管理',
            'ability' => 'feedback',
            'child' => [
                ['name' => '已读',
                    'ability' => 'feedback-read']
            ]
        ],
        //工作人员
        [
            'name' => "工作人员",
            'ability' => 'personnel',
            'child' => [
                [
                    'name' => '添加',
                    'ability' => 'personnel-add',
                ],
                [
                    'name' => '编辑',
                    'ability' => 'personnel-edit',
                ],
                [
                    'name' => '启用/禁用',
                    'ability' => 'personnel-enable-disable',
                ],
                [
                    'name' => '重置密码',
                    'ability' => 'personnel_resetpwd',
                ],
                [
                    'name' => '删除',
                    'ability' => 'personnel_del',
                ],
                [
                    'name' => 'input2br',// 前端换行用  跟权限没关系
                    'ability' => 'input2br',
                ],
                [
                    'name' => '导出',
                    'ability' => 'personnel_export',
                ],
            ],
        ],
        //系统设置
        [
            'name' => "系统设置",
            'ability' => 'system',
            'child' => [
                [
                    'name' => '编辑展示图',
                    'ability' => 'system-edit',
                ], [
                    'name' => '编辑返利规则',
                    'ability' => 'system-rule',
                ], [
                    'name' => '热门推荐',
                    'ability' => 'system-hot',
                ], [
                    'name' => '页面配置',
                    'ability' => 'system-page',
                ], [
                    'name' => '排行榜',
                    'ability' => 'system-rank',
                ]
            ],
        ],
        //权限组
        [
            'name' => "权限组",
            'ability' => 'authority',
            'child' => [
                [
                    'name' => "添加角色",
                    'ability' => 'authority-add',
                ],
                [
                    'name' => "编辑角色",
                    'ability' => 'authority-edit',
                ], 
                [
                    'name' => '权限设置',
                    'ability' => 'authority-ability',
                ]
            ]
        ],
        //模板管理
        [
            'name' => '模板管理',
            'ability' => 'template',
            'child' => [
                [
                    'name' => "添加模板",
                    'ability' => 'template-add',
                ],
                [
                    'name' => "编辑模板",
                    'ability' => 'template-edit',
                ],
                [
                    'name' => '模板消息开关',
                    'ability' => 'template_on_off',
                ],
            ]
        ],

        
//        [
//            'name' => "众筹管理",
//            'ability' => 'crowd'
//        ],
//        [
//            'name' => "团队数据",
//            'ability' => 'team'
//        ],
        
//        [
//            'name' => "优惠券",
//            'ability' => 'coupon',
//            'child' => [
//                [
//                    'name' => "操作",
//                    'ability' => 'coupon-edit'
//                ],
//                [
//                    'name' => "用户优惠券",
//                    'ability' => 'coupon-record',
//                    'child' => [
//                        [
//                            'name' => '编辑用户优惠券',
//                            'ability' => 'coupon-record-edit',
//                        ]
//                    ],
//                ]
//            ],
//        ],
        
        
        //商家职员权限
        [
            'name' => "商家职员权限",
            'ability' => 'merchant_staff',
            'child' => [
                [
                    'name' => '商品品牌',
                    'ability' => 'merchant_staff_good-brand',
                ],
                [
                    'name' => '品牌添加',
                    'ability' => 'merchant_staff_brand-add',
                ],
                [
                    'name' => '品牌编辑',
                    'ability' => 'merchant_staff_brand-edit',
                ],
                [
                    'name' => '品牌删除',
                    'ability' => 'merchant_staff_brand-delete',
                ],
                [
                    'name' => 'input2br',// 前端换行用  跟权限没关系
                    'ability' => 'input2br',
                ],
                [
                    'name' => '类目管理',
                    'ability' => 'merchant_staff_good-category',
                ],
                [
                    'name' => '类目添加',
                    'ability' => 'merchant_staff_category-add',
                ],
                [
                    'name' => '类目编辑',
                    'ability' => 'merchant_staff_category-edit',
                ],
                [
                    'name' => '类目删除',
                    'ability' => 'merchant_staff_category-delete',
                ],
                [
                    'name' => 'input2br',// 前端换行用  跟权限没关系
                    'ability' => 'input2br',
                ],
                [
                    'name' => "商品/套系",
                    'ability' => 'merchant_staff_goods_and_package',
                ],
                [
                    'name' => "添加商品/套系",
                    'ability' => 'merchant_staff_and_package_add',
                ],
                [
                    'name' => "编辑商品/套系",
                    'ability' => 'merchant_staff_and_package_edit',
                ],
                [
                    'name' => "商品/套系评论",
                    'ability' => 'merchant_staff_and_package_comment',
                ],
                [
                    'name' => 'input2br',// 前端换行用  跟权限没关系
                    'ability' => 'input2br',
                ],
                [
                    'name' => "商家回复",
                    'ability' => 'merchant_staff_and_package_comment_reply',
                ],
                [
                    'name' => "商家回复删除",
                    'ability' => 'merchant_staff_and_package_comment_del',
                ],
                [
                    'name' => 'input2br',// 前端换行用  跟权限没关系
                    'ability' => 'input2br',
                ],
                [
                    'name' => "商品/套系上架",
                    'ability' => 'merchant_staff_up',
                ],
                [
                    'name' => "商品/套系下架",
                    'ability' => 'merchant_staff_down',
                ],
                [
                    'name' => "商品/套系排序",
                    'ability' => 'merchant_staff_and_package_sort',
                ],
                [
                    'name' => '商品/套系返利规则',
                    'ability' => 'merchant_staff_and_package_rule',
                ],
                [
                    'name' => 'input2br',// 前端换行用  跟权限没关系
                    'ability' => 'input2br',
                ],
                [
                    'name' => "服务标签",
                    'ability' => 'staff_tag',
                ],
                [
                    'name' => "服务标签添加",
                    'ability' => 'staff_tag-add',
                ],
                [
                    'name' => '服务标签修改',
                    'ability' => 'staff_tag-edit',
                ],
                [
                    'name' => '服务标签删除',
                    'ability' => 'staff_tag-del',
                ],
                [
                    'name' => 'input2br',// 前端换行用  跟权限没关系
                    'ability' => 'input2br',
                ],
                [
                    'name' => "充值记录",
                    'ability' => 'staff_recharge',
                ],
                [
                    'name' => "用户充值",
                    'ability' => 'staff_recharge_add',
                ],
                [
                    'name' => 'input2br',// 前端换行用  跟权限没关系
                    'ability' => 'input2br',
                ],

                // 营销管理-满减优惠
                [
                    'name' => "满减优惠",
                    'ability' => 'staff_full_reduction',
                ],
                [
                    'name' => "添加满减优惠",
                    'ability' => 'staff_full_reduction-add',
                ],
                [
                    'name' => "编辑满减优惠",
                    'ability' => 'staff_full_reduction-edit',
                ], 
                [
                    'name' => '删除满减优惠',
                    'ability' => 'staff_full_reduction-delete',
                ],
                [
                    'name' => 'input2br',// 前端换行用  跟权限没关系
                    'ability' => 'input2br',
                ],

                // 营销管理-商品折扣
                [
                    'name' => "商品折扣",
                    'ability' => 'staff_discount',
                ],
                [
                    'name' => "添加商品折扣",
                    'ability' => 'staff_discount-add',
                ],
                [
                    'name' => "编辑商品折扣",
                    'ability' => 'staff_discount-edit',
                ], 
                [
                    'name' => '删除商品折扣',
                    'ability' => 'staff_discount-delete',
                ],
                [
                    'name' => 'input2br',// 前端换行用  跟权限没关系
                    'ability' => 'input2br',
                ],

                // 营销管理-套系赠品
                [
                    'name' => "套系赠品",
                    'ability' => 'staff_gift',
                ],
                [
                    'name' => "添加套系赠品",
                    'ability' => 'staff_gift-add',
                ],
                [
                    'name' => "编辑套系赠品",
                    'ability' => 'staff_gift-edit',
                ], 
                [
                    'name' => '删除套系赠品',
                    'ability' => 'staff_gift-delete',
                ],
                [
                    'name' => 'input2br',// 前端换行用  跟权限没关系
                    'ability' => 'input2br',
                ],

                // 营销管理-商品赠品
                [
                    'name' => "商品赠品",
                    'ability' => 'staff_goods_gift',
                ],
                [
                    'name' => "添加商品赠品",
                    'ability' => 'staff_goods_gift-add',
                ],
                [
                    'name' => "编辑商品赠品",
                    'ability' => 'staff_goods_gift-edit',
                ], 
                [
                    'name' => '删除商品赠品',
                    'ability' => 'staff_goods_gift-delete',
                ],
                [
                    'name' => 'input2br',// 前端换行用  跟权限没关系
                    'ability' => 'input2br',
                ],
                
                [
                    'name' => "订单",
                    'ability' => 'merchant_staff_order',
                ],
                [
                    'name' => "订单导出",
                    'ability' => 'merchant_staff_order_export',
                ],
                [
                    'name' => "订单标记完成",
                    'ability' => 'merchant_staff_order_success',
                ],
                [
                    'name' => "订单退款",
                    'ability' => 'merchant_staff_order_refund',
                ],
                [
                    'name' => "订单收尾款",
                    'ability' => 'merchant_staff_order_closing_payment',
                ],
                [
                    'name' => "创建订单",
                    'ability' => 'merchant_staff_order_create',
                ],
                [
                    'name' => "订单编辑删除",
                    'ability' => 'merchant_staff_order_change_test'//有问题再放开
                ],
                [
                    'name' => 'input2br',// 前端换行用  跟权限没关系
                    'ability' => 'input2br',
                ],
                [
                    'name' => "返利",
                    'ability' => 'merchant_staff_rebate',
                ],
                [
                    'name' => "返利导出",
                    'ability' => 'merchant_staff_rebate_export',
                ],
                [
                    'name' => "返利审核",
                    'ability' => 'merchant_staff_rebate_examine',
                ],
                [
                    'name' => "返利撤回",
                    'ability' => 'merchant_staff_rebate_revoke',
                ],
            ],
        ],
//        [
//            'name' => "视频管理",
//            'ability' => 'video'
//        ],
    ],
];
